<template>
  <div id="app">
    <img src="./assets/logo.png">
    {{totalPrice}}
    <router-view/>
    <router-link :to="{path:'apple'}">to apple</router-link>
    <router-link :to="{path:'banana'}">to banana</router-link>

  </div>
</template>

<script>
  import Apple from './components/apple'
  import Banana from './components/banana'
export default {
  name: 'App',
  components:{Apple,Banana},
  computed:{
    totalPrice(){
      return this.$store.state.totalPrice
    }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
